﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ERP.WH.Models.Entity;

[Table("wh_stock_in_detail")]
public partial class WhStockInDetail
{
    [Key]
    public long DetailId { get; set; }

    public long StockInId { get; set; }

    public long MaterialId { get; set; }

    public string? BatchNo { get; set; }

    public decimal ExpectedQuantity { get; set; }

    public decimal? ActualQuantity { get; set; }

    public string Unit { get; set; } = null!;

    public decimal? UnitPrice { get; set; }

    public decimal? Amount { get; set; }

    /// <summary>
    /// 目标库位
    /// </summary>
    public int? LocationId { get; set; }

    public DateOnly? ProductionDate { get; set; }

    public DateOnly? ExpiryDate { get; set; }

    /// <summary>
    /// 1-合格, 2-待检, 3-不合格
    /// </summary>
    public sbyte? QualityStatus { get; set; }

    /// <summary>
    /// 0-待入库, 1-部分入库, 2-已完成
    /// </summary>
    public sbyte? Status { get; set; }

    public string? Remark { get; set; }

    public DateTime? CreatedAt { get; set; }

    public DateTime? UpdatedAt { get; set; }

    public sbyte? IsDelete { get; set; }
}
